package com.mozai.shopping.model.http;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "修改活动请求体")
public class ActivityUpdateReq implements Serializable {

    @NotNull(message = "活动id 不能为空")
    @ApiModelProperty(value = "活动id",required = true,dataType = "Integer")
    private Integer id;

    @NotBlank(message = "活动名称 不能为空")
    @ApiModelProperty(value = "活动名称",required = true,dataType = "String")
    private String  activityName;

    @ApiModelProperty(value = "活动开始时间",required = true,dataType = "Date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date activityStartTime;

    @ApiModelProperty(value = "活动结束时间",required = true,dataType = "Date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date activityEndTime;
}
